<template>
  <div class="ts-item"

  >
    <div>
      <div class="ts-title" :style="{backgroundImage: `url(${detail.icon})`}">{{detail.name}}</div>
      <div class="ts-content">
        {{detail.num}} <span>{{detail.unit}}</span>
      </div>

    </div>
  </div>
</template>
<script>
    import commonDialog from '@/components/commonDialog/common.dialog'
    import commonForm from '@/components/commonForm/commonForm.component'
    import commonWrap from '@/components/customComponents/commonWrap.component'
    import api from "@/api/common.api";
    export default {
        props: ['detail'],
        components: {

        },
        data () {
            return {

            }
        },
        methods: {

        },
        mounted() {

        }
    }
</script>
<style lang="stylus">
  .ts-item{
    height: 100%;
    display: flex;
    align-items: center;
    .ts-title{
      padding-left: 25px;
      width: 100%;
      font-size: 20px;
      color: #a0abb1;
      background-repeat: no-repeat;
      background-position: 4px 5px;
      background-size: 16px 16px;
    }
    .ts-content{
      padding-left: 25px;
      width: 100%;
      color: #4adaf7;
      font-size: 22px;
      margin-top: 10px;
      span{
        font-size: 14px;
        color: #a0abb1;
      }
    }
  }
  @media screen and (max-width: 1920px) {
      .ts-title{
          font-size: 14px!important;
          background-position: 4px 2px!important;

      }
      .ts-content{
          font-size: 14px!important;
          margin-top: 5px!important;
          span{
              font-size: 12px;
              color: #a0abb1;
          }

      }
  }

</style>
